<template>
  <div>
    <MButton @click="isActive = !isActive">改变active</MButton>
    <div>
      <MSkeleton :active="isActive" type="round" :size="30" />
      <MSkeleton :active="isActive" type="line" :size="30" :width="200" />
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue";

export default defineComponent({
  components: {

  },
  setup() {
    const isActive = ref(true);
    return {
      isActive,
    };
  },
});
</script>
